<div id="jm-main" class="<?php echo $currentScheme; ?>" style="width: 960px;">
	<div id="jm-main-in" class="clearfix">
    	<?php 
        	$i = 1;
            foreach ($schemeOutput as $item) {
            	if ($i == 1) {
                	$className = 'first';
                } else if ($i == 2) {
                    $className = 'second';
                } else if ($i == 3) {
                    $className = 'third';
                }
                if (stristr($item, 'left')) {	                            
		?>
        <div id="jm-left" class="<?php echo $className; ?>" style="width: 26%;">
        	<div class="jm-left-in">
        		<jdoc:include type="modules" name="position-7" style="jmmodule"/>
        	</div>
        </div>
        <?php 
        } else if (stristr($item, 'content')) {	                    
        ?>
        <div id="jm-content" class="<?php echo $className;?>" style="width: 74%;">
        	<div class="jm-content-in">
	        	<?php if($this->countModules('content-top')) : ?>
				<div id="jm-content-top">
					<jdoc:include type="modules" name="content-top" style="jmmodule"/>
					<div style="clear: both;"></div>
				</div>
				<?php endif; ?>
			    <?php if ($this->countModules('breadcrumbsload')) : ?>
				<div id="jm-pathway-font-switcher" class="clearfix nofontsw">
					<?php if ($this->countModules('breadcrumbsload')) : ?>
				    <div id="jm-pathway">
				    	<jdoc:include type="modules" name="breadcrumbsload" style="xhtml"/>
				    </div>
				    <?php endif; ?>
				</div>
				<?php endif; ?>       
	            <div id="jm-maincontent">
	            	<jdoc:include type="message" />
	            	<jdoc:include type="component" />
	            </div>
	        	<?php if($this->countModules('banner')) : ?>
				<div id="jm-banner">
					<jdoc:include type="modules" name="banner" style="raw"/>
				</div>
				<?php endif; ?>
			</div>			
		</div>
        <?php 
        } else if (stristr($item, 'right')) {                
        ?>
        <div id="jm-right" class="<?php echo $className; ?>" style="width: 26px;">
        	<div class="jm-right-in">
        		<jdoc:include type="modules" name="rightload" style="jmmodule"/>
        	</div>
        </div>
        <?php } $i++; } ?>
	</div>    
</div>